﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace DataContracts
{
    /// <summary>
    /// Define UserDTO
    /// </summary>
    [DataContract]
    public class UserDTO
    {
        
        private int _userId;        
        private string _firstName;        
        private string _lastName;        
        private DepartmentDTO _userDepartment;        
        private RoleDTO _userRole;

        /// <summary>
        /// User Id
        /// </summary>
        [DataMember]
        public int UserId
        {
            get { return _userId; }
            set { _userId = value; }
        }

        /// <summary>
        /// First Name
        /// </summary>
        [DataMember]
        public string FirstName
        {
            get { return _firstName; }
            set { _firstName = value; }
        }

        /// <summary>
        /// Last Name
        /// </summary>
        [DataMember]
        public string LastName
        {
            get { return _lastName; }
            set { _lastName = value; }
        }

        /// <summary>
        /// DepartmentDTO Attribute
        /// </summary>
        [DataMember]
        public DepartmentDTO Department
        {
            get { return _userDepartment; }
            set { _userDepartment = value; }
        }

        /// <summary>
        /// RoleDTO Attribute
        /// </summary>
        [DataMember]
        public RoleDTO Role
        {
            get { return _userRole; }
            set { _userRole = value; }
        }
    }
}
